package org.hagopa.games.moneypool.dblayer;

import org.hagopa.games.moneypool.dblayer.Connector.DBConnector;


public class MainClass {

	public static void main(String[] args) 
	{
		DBConnector nDB =  DBConnector.getInstance();
		DBConnector.setInitialSettings("localhost","root", "","bogo");
		if(null == nDB)
		{
			System.out.println("Failed to Create DB handler!");
			return;
		}
		DBConnector.connect();
		//GameData gdt = new GameData(1);
		//gdt.loadData();
		
		PlayersInGameAdopt piga = new PlayersInGameAdopt(nDB, 2);
		GameGeneralInfoAdopt ggia = new GameGeneralInfoAdopt(1);
		piga.requestDB();
		piga.printAll();
		ggia.requestDB();
		
		
		System.out.println("Connected");
		DBConnector.disconnect();
		
		System.out.println("Disconnected");
		


	}

}
